package com.xiaoshou.pojo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "feedback", catalog = "market")
public class Feedback implements Serializable {

	private static final long serialVersionUID = 1L;

	private String id;
	private String content;
	private String oncelession;
	private String whetherbill;
	private String intersteddisease;

	private Lectures lectures;
	private Departments departments;

	@Id
	@Column(name = "id", unique = true, nullable = false, length = 40)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "content", length = 65535)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "oncelession", length = 45)
	public String getOncelession() {
		return oncelession;
	}

	public void setOncelession(String oncelession) {
		this.oncelession = oncelession;
	}

	@Column(name = "whetherbill", length = 45)
	public String getWhetherbill() {
		return whetherbill;
	}

	public void setWhetherbill(String whetherbill) {
		this.whetherbill = whetherbill;
	}

	@Column(name = "interesteddisease", length = 65535)
	public String getIntersteddisease() {
		return intersteddisease;
	}

	public void setIntersteddisease(String intersteddisease) {
		this.intersteddisease = intersteddisease;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "lecturesid")
	public Lectures getLectures() {
		return lectures;
	}

	public void setLectures(Lectures lectures) {
		this.lectures = lectures;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "departmentsid")
	public Departments getDepartments() {
		return departments;
	}

	public void setDepartments(Departments departments) {
		this.departments = departments;
	}

}
